package com.lb.activity;

import com.lb.activity.util.SnowflakeIdWorker;
import lombok.extern.java.Log;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;


@SpringBootApplication
@tk.mybatis.spring.annotation.MapperScan("com.lb.activity.mapper")
@Log
public class CommonApplication {


    @Bean
    public SnowflakeIdWorker idWorker(){
    return new SnowflakeIdWorker(0,0);
    }

    public static void main(String[] args) {
        SpringApplication.run(CommonApplication.class, args);
        log.info("                                                       \n" +
                "   ___    ___    _ __ ___    _ __ ___     ___    _ __  \n" +
                "  / __|  / _ \\  | '_ ` _ \\  | '_ ` _ \\   / _ \\  | '_ \\ \n" +
                " | (__  | (_) | | | | | | | | | | | | | | (_) | | | | |\n" +
                "  \\___|  \\___/  |_| |_| |_| |_| |_| |_|  \\___/  |_| |_|\n" +
                "                                                       ");
    }



}

